#define  _CRT_SECURE_NO_WARNINGS  1
#include<stdio.h>
int func(int n, int a)
{
	int sum = 0;
	int temp = 0;
	for (int i = 0;i < n;i++)
	{
		temp = temp * 10 + 2;
		sum += temp;
	}
	return sum;
}
int main()
{
	int sum=func(5, 2);
	printf("%d\n", sum);
	return 0;
}